﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ThuChi
{
    public partial class QuanLyKhoan : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int maQuyen;
            try
            {
                maQuyen = Utilities.GetMaQuyen((int)Session["MaTaiKhoan"]);

            }
            catch //(Exception ex)
            {
                maQuyen = 0;
            }

            if (maQuyen == 0)
            {
                Session["RefUrl"] = "~/QuanLyKhoan.aspx";
                Response.Redirect("~/Login.aspx");
            }
            else if (maQuyen != 1)
            {
                Response.Redirect("~/NotPermitted.aspx");
            }
        }
    }
}